
			
			<div class="container">
				<div class="zone-form">
                <div class="page-header" style="position:relative;">
					<h3>Edit Zone </h3>
                </div>
					<?php echo form_open('zones/update/'. $hasil->zone_id,'class ="form-horizontal" ');?>
                        <div class="control-group">
							<label class="control-label" for="name">Zone Name<span style="color: red;">*</span></label>
							<div class="controls">
								<input type="text" name="name" value="<?php echo set_value('name', $hasil->name); ?>" />
                                <label class="error"><?php echo form_error('name'); ?></label>
							</div>
						</div>
                        <hr />
                        <div class="control-group">
							<label class="control-label" for="code">Zone Code</label>
							<div class="controls">
								<input type="text" name="code" value="<?php echo set_value('name', $hasil->code); ?>" class="input-mini" />
                                <label class="error"><?php echo form_error('code'); ?></label>
							</div>
						</div>
                        <hr />
                        <div class="control-group">
							<label class="control-label" for="country_id">Country</label>
							<div class="controls">
                            	<?php $country = $this->zones_model->get_countries(); ?>
                                    <select name="country_id">
                                    <?php foreach($country as $valc){ ?>
                                        <option value="<?php echo $valc->country_id ?>" <?php echo set_select('country_id',$valc->country_id); ?> <?php if($hasil->country_id == $valc->country_id) echo ("selected=\"selected\"");?>>
											<?php echo $valc->name ?></option>
                                    <?php } ?>
            					</select>
                                <label class="error"><?php echo form_error('country_id'); ?></label>
							</div>
						</div>
                        <hr />
                       	<div class="control-group">
							<label class="control-label" for="status">Status</label>
							<div class="controls">
								<select name="status">
                                    <?php if ($hasil->status) { ?>
                                      <option value="1" selected="selected">Enabled</option>
                                      <option value="0" >Disabled</option>
                                      <?php } else { ?>
                                      <option value="1">Enabled</option>
                                      <option value="0" selected="selected">Disabled</option>
                                      <?php } ?>
                                </select>
                                <label class="error"><?php echo form_error('status'); ?></label>
							</div>
						</div>
                        <div class="form-actions">
                    		<input class="btn btn-primary" id="submit" type="submit" value="Save Change" />
                    		<input class="btn" id="cancel" type="button" name="cancel" value="Cancel" onclick="self.history.back()" /> 
                   		</div>
					<?php echo form_close(); ?>
				</div>
			</div>

		